package com.lanxin.judge.service;

import com.lanxin.hr.entity.ZzAccount;
import com.lanxin.hr.entity.ZzEmployee;
import com.lanxin.judge.Vo.ApplyVo;
import com.lanxin.judge.Vo.ApprovalVo;
import com.lanxin.judge.entity.LcApproval;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Objects;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-08-11
 */
public interface ILcApprovalService extends IService<LcApproval> {

    //获取我需要审批的单据
    public List<ApplyVo> getMyApprovals(ZzAccount account);


    //审批申请
    public void doApproval(ZzEmployee employee,ApplyVo applyVo,Integer oid, String status,  String opinion);

    //根据申请单号查询申请审批时间
    public String getApprovalDateByDocNo(String docNo);

    //获取我的所有申请单
    public List<ApplyVo> listMyDoc(ZzEmployee employee);

    //根据申请单编号获取审批记录
    List<ApprovalVo> getApprovalByDocNo(String docNo);
}
